package com.tg.app.bean;

import android.os.Parcel;
import android.os.Parcelable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

/**
 *   设备列表信息类
 */
@Entity
public class WifiItem implements Parcelable {
    @Id
    public long id;
    public  String uuid;//设备UUID
    public  String password;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    protected WifiItem(Parcel in) {
        id = in.readLong();
        uuid = in.readString();
        password = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(uuid);
        dest.writeString(password);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WifiItem> CREATOR = new Creator<WifiItem>() {
        @Override
        public WifiItem createFromParcel(Parcel in) {
            return new WifiItem(in);
        }

        @Override
        public WifiItem[] newArray(int size) {
            return new WifiItem[size];
        }
    };

    public WifiItem() {
    }

    public WifiItem(String uuid, String pwd) {
        this.uuid = uuid;
        this.password = pwd;
    }
}
